public class dome1 {
    public String name;
    public int age;
    public int band;
    public static String classname;
    static {
        int a=10;
        int b=20;
    }//静态代码块；
    {
        int a=3;
        int c=3;
    }//实例代码块；

    public dome1(String name, int age, int band) {
        this.name = name;
        this.age = age;
        this.band = band;
    }

    public void eat(){
        System.out.println(name+"吃零食");
    }
    public void play(){
    System.out.println(name+"看快手");
    }
    @Override
    public String toString() {
        return "dome1{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", band=" + band +
                '}';
    }
}
